package game.controller;

import javafx.scene.canvas.GraphicsContext;

public class Projectile {//飞行物

    public boolean alive;//是否存活

    protected int speedRock;//飞行速度
    protected int maxLife;//最大飞行距离
    protected int life;

    protected int useCost;//发射成本

    protected int worldX, worldY;
    protected int direction;

    public Projectile() {

    }

    public void set(int worldX, int worldY, int direction) {
    }

    public void update() {
    }

    public void draw(GraphicsContext gc) {
    }

    public void doSomething(InnerFunction function) {
        function.innerFunction();
    }

    public interface InnerFunction {
        void innerFunction();
    }


}





